
<h2 class="title">我的订单</h2>
<{if $countsOrders <= 0}>
    <div class="box-none">
        <img src="/resource/www/imgs/box_none_icon.png" class="img">
        <p class="text">抱歉，你还没有订单！</p>
    </div>
<{else}>
<{foreach from=$orders item="order"}>
    <ul class="orders-list guiderOrders">
        <li class="li">
            <div class="one">
                <div class="left fix">
                  <img src="<{$order.guider.userIcon}>" class="tx">
                  <span class="name"><{$order.guider.userName}></span>
                  <span class="date"><{"Y-m-d H:i:s"|@date:$order.created}></span>
                </div>
                <div class="center">
                   当前状态
                </div>
                <div class="right">
                    操作
                </div>
            </div>
            <div class="two">
                <div class="left"><{$order.title}></div>
                <div class="center">  <{$order.statusName}></div>
                <div class="right">
                    <p class="caozuo">
                        <a href="/chat/with/<{$order.guider.userUid}>" class="a">联系玩伴</a>
                        <{if $$order.status != '32'}>
                        <a href="/guider/order_detail/<{$order.orderNo}>" class="a">查看</a>
                        <{/if}>
                        <{if $order.status == '32' || $order.status == '99'}> 
                        <a class="a" href="/guider/add_line_comment/<{$order.goodsType}>/<{$order.orderNo}>">点评</a>
                        <{/if}>
                        <{if $order.status == '3' || $order.status == '32'}>
                        <a class="a" onclick="finish_order<{$order.orderNo}>()">确认付款</a>
                        <script type="text/javascript">
                        function finish_order<{$order.orderNo}>(){
                           layer.confirm('请在行程结束后点击《确认付款》，哇吖将会向玩伴执行打款操作，您的行程是否已经完成？', {
                                    title: null,
                                    btn: ['确认', '取消'],
                                    },  function () {
                                            window.location.assign('/order/finish/<{$order.orderNo}>');
                                        }
                                    ,  function (index) {
                                          layer.close(index);
                           });
                        }
                        </script>
                        <{/if}>
                    </p>
                </div>
            </div>
        </li>
    </ul>
<{/foreach}>
<{$pagination}>
<{/if}>


<script>
    $(".woyd").addClass("active");
</script>
